package com.rich.user.controller;

import com.rich.user.pojo.UserHouse;
import com.rich.user.service.UserIssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 用户发布
 * @Package: com.rich.user.controller
 * @Author: 张dy
 * @Date: Created in 2021/8/26 上午 10:30
 */
public class UserIssueController {

    @Autowired
    private UserIssueService userIssueService;
    /**
     *  我的发布
     * @Author: zdy
     * @Date:  下午 6:43
     * @param userId
     * @return java.util.List<com.rich.user.pojo.UserHouse>
     **/
    @GetMapping("/findIssue/{userId}")
    public List<UserHouse> findIssue(@PathVariable("userId")Long userId){
        return userIssueService.findIssue(userId);
    }

}
